<!--{Atemplate tpl/header}-->

<div class="amain">

<form method="post" onsubmit="return Apps.cmd.show();">
	<input type="hidden" id="url_cmd_run" value="$this->Amodr-runcmd">
	命令:<input type="text" id="cmd_val" value="$cmd_val" size="100">
	<input type="submit" value="执行">
</form>
<hr>
当前状态：<span id="cmd_run_status"></span></br>
<pre id="cmd_run_show" class="cmd_run_show"></pre>
<div >

	<a href="#" onclick="Apps.cmd.run('tasklist')">进程列表</a>
	<br>
	<a href="#" onclick="Apps.cmd.run('tasklist /svc')">进程 - 服务</a>
	<br>

	<a href="#" onclick="Apps.cmd.run('free -m')">查看内存占用</a><br>
	<a href="#" onclick="Apps.cmd.run('netstat -an |grep :80')">查看80端口连接</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo anmp memcached restart')">重启 memcached</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo anmp ftp restart')">重启 ftp</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo anmp nginx reload')">重载 nginx</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo anmp php reload')">重载 php</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo anmp svn restart')">重启 svn</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www-user:www /Anmp/user')">可写 user</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www:www /Anmp/shell')">可写 shell</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www:www /Anmp/acan')">可写 acan</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www:www /Anmp/www')">可写 www</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www:www /Anmp/config')">可写 config</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo chown -R www:www /Anmp/data/svn')">可写 svn</a><br>
	<a href="#" onclick="Apps.cmd.run('sudo reboot')">重启主机</a><br>
</div>
</div>
<!--{Atemplate tpl/footer}-->